package com.itheima.health.jobs;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.health.service.OrderService;
import lombok.extern.slf4j.Slf4j;

/**
 * @author ：SeHai
 * @date ：Created in 2020/1/3
 * @description ：
 * @version: 1.0
 */
@Slf4j
public class OrderJob {

    @Reference
    private OrderService orderService;


    public void orderJob(){
        System.out.println("定时删除数据信息");
        log.info("开始清理数据.....");
        orderService.deleteOrderByTime();

    }
}
